package com.atguigu.util.method_fa;

/**
 * @author caesar
 * @date 2025/7/7
 * @Description:
 * @apiNote
 */
public class Vehicle {
    private double speed;
    private String color;

    public Vehicle() {
    }

    public Vehicle(double speed, String color) {
        this.speed = speed;
        this.color = color;
    }

    public void move() {
        System.out.println("正在移动");
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getSpeed() {
        return speed;
    }

    public void setSpeed(double speed) {
        this.speed = speed;
    }

    @Override
    public String toString() {
        return "速度：" + speed +
                "，颜色：" + color ;
    }
}
